--[[
-- @Author:      feilong
-- @DateTime:    2020-10-30 23:05:48
-- @Description: mysql操作
	例子
	local data = g.message:call(svr, "select * from next_account_id")
	g.log:debug("data:",data)

]]

---------------------------------------------------------
-- class
---------------------------------------------------------
local Service = class("Mysql")

function Service:ctor(conf_name)
    g.manager = new("mysql.manager", conf_name)

    self:register()
end

function Service:register()
    g.register('start', handler(self, self.onStart))
    g.register('close', handler(self, self.onClose))
end

function Service:onStart()
    return true
end

function Service:onClose()
    return true
end

return Service
